package org.example.Interface.ddl;


import org.example.annotation.NotCamel;
import org.example.annotation.Type;
import org.example.model.Field;

public interface Alter {
    String renameTable(String tableName, String newTableName);

    public String renameColumn(String tableName,
                               String column,
                               String newColumn,
                               @NotCamel @Type String newColumnType);

    public String  modifyColumn(String tableName,
                                @NotCamel Field field);

    public String  addColumn(String tableName,
                             @NotCamel Field field);




    public String delColumn(String tableName,
                            String column);





    public String addPrimaryKey(String tableName, String ... column);

    public String setAutoPrimaryKey(String tableName, String keyColumn);

    public String delPrimaryKey(String tableName);

    public  String addIndex(String tableName,String  column);


    public String delIndex(String tableName,String  column);

}
